package com.example.langchain4j_springboot.Tools;


import com.example.langchain4j_springboot.Enum.TemperatureUnit;
import dev.langchain4j.agent.tool.P;
import dev.langchain4j.agent.tool.Tool;
import opennlp.tools.cmdline.ArgumentParser;
import org.springframework.stereotype.Component;

@Component
public class BookingTools {
    public static final String TOOL_DESCRIPTION = "某一道题怎么解答";

    @Tool("返回给定城市的天气预报")
    String getWeather(
            @P("应返回天气预报的城市") String city,
            TemperatureUnit temperatureUnit
    ){
        return "天气预报:"+ city+  "的"+ temperatureUnit+ "温度为：25°C";
    }
}
